<%@ include file="/taglibs.jsp"%>

<head>
	<title>
		<s:text name="%{title}"></s:text>
	</title>
	<script type="text/javascript" src="${ctx}/scripts/file_module.js"></script>
</head>

<s:set name="files" value="fileList" scope="request"/>

<s:set var="item_name" value="%{getText('file.item_name')}" scope="page"></s:set>
<s:set var="items_name" value="%{getText('file.items_name')}" scope="page"></s:set>
<s:set var="type" value="%{type}" scope="page"></s:set>

<display:table name="files" class="table" id="fileList" requestURI="">
    <display:column property="id" sortable="true" href="viewFile.html?type=${type}" media="html"
        paramId="id" paramProperty="id" titleKey="file.id"/>
    
    <display:column property="sender" sortable="true" titleKey="file.sender" escapeXml="true"/>
    <display:column sortable="true" titleKey="file.inputDate" escapeXml="true">
    	<joda:format value="${fileList.inputDate}" pattern="dd/MM/yyyy"/>
    </display:column>
    <display:column sortable="true" titleKey="file.outputDate" escapeXml="true">
    	<joda:format value="${fileList.outputDate}" pattern="dd/MM/yyyy"/>
    </display:column>
    <display:column property="fileStatus.status" sortable="true" titleKey="file.status" escapeXml="true"/>
   
</display:table>
<script type="text/javascript">highlightTableRows("fileList");</script>
